﻿using Transformable_Engine_v2.Engine.Graphics;

namespace Transformable_Engine_v2.Engine.Animation.FrameAnimation
{
    public class FrameDescription
    {
        public Sprite Sprite { get; private set; }
        public int NextFrameId { get; private set; }
        public int Duration { get; set; }
        public bool IsLastFrame { get; set; }

        public int Id { get; private set; }

        public FrameDescription(Sprite sprite,
                                int id,
                                int nextFrameId)
            : this(sprite, id, nextFrameId, 0)
        {
            
        }

        public FrameDescription(Sprite sprite,
                                int id,
                                int nextFrameId,
                                int duration)
        {
            Sprite = sprite;
            Id = id;
            NextFrameId = nextFrameId;
            Duration = duration;
            IsLastFrame = false;
        }
    }
}